//
//  UIImage+XY.h
//  ZhaoQiPei
//
//  Created by baiye on 2017/1/24.
//  Copyright © 2017年 XiangYun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XYSystem.h"

@interface UIImage (XY)

+ (UIImage *)imageWithColor:(UIColor *)color;
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
+ (void)downloadImageWithURLString:(NSString *)URLString success:(void(^)(UIImage * image))success failure:(void(^)(NSError * error))failure;

- (UIImage *)imageWithScale:(CGFloat)scale;
- (UIImage *)imageWithMaxSide:(CGFloat)side;

@end
